import request from '@/utils/request'

// 分页查询
export function queryForList(entityProperty) {
  return request({
    url: '/system/entityProperty/queryForList',
    contentType: 'application/json;charset=utf-8',
    method: 'post',
    dataType: 'json',
    data: entityProperty,
    headers: {
      'urlType':'admin'
    }
  })
}

// 新增
export function createOrUpdate(entityProperty) {
  return request({
    url: '/system/entityProperty/createOrUpdate',
    contentType: 'application/json;charset=utf-8',
    method: 'post',
    dataType: 'json',
    data: entityProperty,
    headers: {
      'urlType':'admin'
    }
  })
}

// 删除
export function deleteData(dataId) {
  return request({
    url: '/system/entityProperty/delete/' + dataId,
    method: 'post',
    dataType: 'json',
    headers: {
      'urlType':'admin'
    }
  })
}


// 根据id查询
export function getById(dataId) {
  return request({
    url: '/system/entityProperty/getById/' + dataId,
    method: 'get',
    dataType: 'json',
    headers: {
      'urlType':'admin'
    }
  })
}